/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GUIalmacen;

import BE.BENodo;
import BE.BEPallet;
import BE.BERack;
import BL.BLPallet;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JButton;


/**
 *
 * @author Cristian
 */
public class MiBotonRack extends JButton{
private BENodo objnodo= new BENodo();
private BERack objRack= new BERack();
private List <BEPallet> lstpallet = new ArrayList<BEPallet>();

    public MiBotonRack() {
    }

public MiBotonRack(BENodo nodo,BERack objRack ) {
         super();
         objnodo=nodo;

         this.objRack=objRack;
         BLPallet blpallet=new BLPallet();
//         if (objRack!=null){
//                 lstpallet=blpallet.getPalletbyRack(objRack.getIdRack());
////                 if (lstpallet!=null)
////                 for (int j=0;j<lstpallet.size();j++)
//                //System.out.println("pallets del rack " +objRack.getIdRack()+" posicion: "+nodo.getX() +" " +nodo.getY() + " pallet"+lstpallet.get(j).getIdPallet());
//         
//         
//         }
//         else
             lstpallet=null;

    }

    public List<BEPallet> getLstpallet() {
        return lstpallet;
    }

    public void setLstpallet(List<BEPallet> lstpallet) {
        this.lstpallet = lstpallet;
    }

    public BERack getObjRack() {
        return objRack;
    }

    public void setObjRack(BERack objRack) {
        this.objRack = objRack;
    }

    public BENodo getObjnodo() {
        return objnodo;
    }

    public void setObjnodo(BENodo objnodo) {
        this.objnodo = objnodo;
    }


}
